#ifndef _PAGE_POP_H_
#define _PAGE_POP_H_

#include "page_base.h"

typedef enum
{
    POP_MODE_DELETE, // 确认删除
} PopType;

typedef std::function<void()> pop_callback;

class PagePop
{
private:

public:
    PagePop(ViewGroup *wind_pop_box, int type, pop_callback enterCb, pop_callback cancelCb, int position);
    ~PagePop();
    void onBtnClickListener(View&v);

protected:
    ViewGroup *mWindPopBox;
    ViewGroup *mPopLayout;

    TextView *mPopModeName;
    TextView *mPopModeTemp;
    TextView *mPopModeChuShui;

    TextView *mPopSubmit;
    TextView *mPopCancle;
    
    int mPosition;
    int mType;
    pop_callback mEnterCallback;
    pop_callback mCancelCallback;
};

#endif